import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {MsdsComponent} from "./msds.component";
import {AddEditListComponent} from "./add-edit-list/add-edit-list.component";

const routes: Routes = [
  {path: '', component: MsdsComponent, data: {title: 'SDS', key: 'msds'}},
  {
    path: 'add-edit-list',
    component: AddEditListComponent,
    data: {title: 'SDS', shouldDetach: 'no', key: 'add-edit-list', relatedLink: ['add-edit-list', 'msds']}
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class MsdsRoutingModule {
}
